package com.aliang.shopping.mapper;

import com.aliang.shopping.model.dto.RelateDTO;
import com.aliang.shopping.model.po.Cart;
import com.aliang.shopping.model.vo.cart.CartShowVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ShiBaLover
* @description 针对表【cart(购物车表)】的数据库操作Mapper
* @createDate 2025-01-04 10:54:50
* @Entity com.aliang.shopping.model.po.Cart
*/
public interface CartMapper extends BaseMapper<Cart> {

    List<CartShowVO> getCartShowVO(@Param("userId") Long userId);

    List<CartShowVO> getCartShowVOByIds(@Param("cartIds") List<Long> cartIds,@Param("userId") Long userId);


    List<RelateDTO> getRelate(@Param("list") List<Long> userIds);
}




